package com.haidechizi.fastadmin.modules.oss.utils;

import com.google.common.collect.Lists;
import com.haidechizi.fastadmin.common.utils.StringUtils;

import java.util.List;

/**
 * @author wangdejun
 * @create 2020/10/27 10:53
 */
public class OssUtils {

    public static List<String> IMAGE = Lists.newArrayList(".jpg", ".jpeg", ".png", ".gif");

    public static final String userFile = "userFile";

    public static boolean isImage(String suffix) {
        if (StringUtils.isBlank(suffix)) {
            return false;
        }
        return IMAGE.contains(suffix.toLowerCase());
    }
}
